package com.tarena.redis.demo.service;

import com.tarena.redis.demo.dao.ProductDao;
import com.tarena.redis.demo.dao.po.ProductPO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class ProductService {
    @Autowired
    private ProductDao productDao;
    public ProductPO getProductName(String id){
        ProductPO po = productDao.getProductById(id);
        log.info("拿到商品数数据:{}", po);
        return po;
    }
}
